package com.suntek.svn.utils;

public class Base64Utils {

	public static String encodeString(String src) {
		return new String(org.apache.commons.codec.binary.Base64
				.encodeBase64(src.getBytes()));

	}

	public static String decodeString(String src) {

		return new String(org.apache.commons.codec.binary.Base64
				.decodeBase64(src.getBytes()));

	}

	public static void main(String[] args) {
		System.out.println(encodeString("suntek"));
		System.out.println(decodeString("c3VudGVr"));
	}
}
